<?php
namespace Twoir\System\Model;

use Twoir\System\Support\ParseTrait;
use Twoir\System\Support\SingleTrait;

/**
 * 购买记录备份表
 * 
 * 【注意事项】有增减字段，请更新 字段：FIELD和默认值：MYDEFAULT，没有更新请勿动！！！
 * cighsen02 365182575
 * time: 2022.04.19 update 2022.06.20
*/
class EnewsBuyBak
{
    use ParseTrait, SingleTrait;
    
	const TABLE = 'enewsbuybak';
	
	//主键字段
	const PRIMARY   = 'id';
	
	const FIELD = ['id', 'username', 'card_no', 'buytime', 'cardfen', 'money', 'userid', 'userdate', 'type'];
	
	/**
	 * 默认值， null为自动增加字段
	 */
	const MYDEFAULT = [
		'id'		=> null, 
		'username'	=> '', 
		'card_no'	=> '', 
		'buytime'	=> '0000-00-00 00:00:00', 
		'cardfen'	=> 0, 
		'money'		=> 0, 
		'userid'	=> 0, 
		'userdate'	=> 0, 
		'type'		=> 0
	];
}